package cn.hpclub.server.constant;

public interface ClientApiConstant{

    // 通用
    public static final String  APPKEY_DZG_STRING = "100000056";
    public static final int     APPKEY_DZG_VALUE  = 100000056;
    public static final String  SECRET_DZG        = "E4B543344ED39511443786EAF2577609";

    // smscode登陆调试，如果是本地开发和测试，因为没有自己手机账号，暂时采用调试模式。该值默认为false。
    public static final boolean SMS_CODE_DEBUG    = false;

    // 用于smscode调试模式，和IOS 逛一逛账号。
    public static final String  CONSTANT_SMS_CODE = "88888";

    public static final String  CONSTANT_DES_KEY  = "C36DF8PM";
    public static final String  ENCODING          = "ASCII";

    public interface ResultCode{
        public final static int SUCCESS_CODE                   = 1000;
        public final static int NO_PERMISSION                  = 1001;
        public final static int VISIT_FULL                     = 1002;
        public final static int NOT_EXIST                      = 1003;
        public final static int SERVER_EXCEPTION               = 1004;
        public final static int FAILED                         = 1005;
        public final static int PARAM_ERROR                    = 1006;
        public final static int SOAPHEAD_FAILED                = 1007;
        public final static int SMSCODE_EXPIRE                 = 1008;
        public final static int SESSION_TIMEOUT                = 1009;
        public final static int MOBILE_EXIST                   = 1010;
        public final static int CMCC_VALID_RAND_PASS_EXCEPTION = 1011;
        public final static int CMCC_GETACTIVITIES_EXCEPTION   = 1012;
    }

    public interface Msg{
        public final static String SUCCESS                           = "成功";
        public final static String FAIL                              = "失败";
        public final static String EXCEPTION                         = "异常";
        public final static String PARAEXCEPTION                     = "参数异常";
        public final static String PARA_ILLEGAL                      = "参数非法";
        public final static String PARA_EXCEPTION_DIGST              = "Digest异常";
        public final static String EMPTY                             = "";
        public final static String EMPTY_DATA                        = "[]";
        public final static String INVAILD_TOKEN                     = "无效Token";
        public final static String ACCOUNT_NOT_EXIST_OR_PASSWD_ERROR = "用户名或密码错误";
        public final static String ACCOUNT_NOT_EXIST                 = "用户名或密码错误";
        public final static String MSG_SESSION_TIMEOUT               = "连接超时，请重新登陆";
        public final static String ORG_NOT_EXIST                     = "机构不存在";
        public final static String MSG_EXCEPTION                     = "服务器处理异常，请稍后再试";
        public final static String PASSWD_ERROR                      = "原始密码错误";
        public final static String PASSWD_MODIFIED                   = "密码修改成功";
        public final static String CITY_CODE_ID_ERROR                = "获取地市编码失败，请联系管理员";
        public final static String EMP_CODE_ERROR                    = "工号未关联，拒绝登录，请联系管理员";
        public final static String SMS_CODE_ERROR                    = "验证码不匹配";
        public final static String SMS_CODE_EMPTY                    = "验证码为空";
        public final static String ILLEGAL_USERNAME                  = "用户名应为11位手机号码，且不能包含空格";
        public final static String SMS_CODE_COUNT                    = "发送验证码次数已超过当天限制";
        public final static String PRODUCT_NOT_EXIST                 = "商品不存在";
        public final static String GETACTIVITIES_ERROR               = "获取活动参数错误";
        public final static String GETACTIVITIES_EXCEPTION           = "获取活动失败";
        public final static String SMS_CODE_INVALIDATE_ERROR         = "验证码验证异常";
        public final static String NO_DATA                           = "服务器异常，请联系管理员";
        public final static String ILLEGAL_USER                      = "用户身份信息不合法!";
        public final static String BOSS_NO_DATA                      = "无活动数据，请联系BOSS管理员";
    }

    public interface Key{

        // 通用的
        public static final String RESULT_CODE                   = "ResultCode";
        public static final String MESSAGE                       = "Message";
        public static final String DATA                          = "Data";

        public static final String APPKEY                        = "appkey";
        public static final String TIMESTAMP                     = "timestamp";
        public static final String DIGEST                        = "digest";
        public static final String TOKEN                         = "token";
        public static final String VERSION                       = "v";
        public static final String ORIGIN                        = "origin";

        public static final String PAGE_INDEX                    = "pageindex";
        public static final String PAGE_SIZE                     = "pagesize";

        // 登陆接口用的
        public static final String USERNAME                      = "username";
        public static final String PASSWORD                      = "password";
        public static final String PTAG                          = "ptag";

        public static final String MONTH_SUMMARY                 = "monthSummary";
        public static final String CMCC_PARAM                    = "CmccParam";
        public static final String CHANNEL_ID                    = "ChannelId";
        public static final String SYSTEM_SIGN                   = "SystemSign";
        public static final String BCHARGE                       = "BCharge";
        public static final String BCHARGE_NAME                  = "BChargeName";

        public static final String ID                            = "id";
        public static final String NEWSID                        = "newsId";
        public static final String NAME                          = "name";
        public static final String STOREMASTERID                 = "storeMasterId";
        public static final String STOREMASTERGUID               = "storeMasterGuid";
        public static final String STORE_NAME                    = "storeName";

        public static final String THEME_ID                      = "themeId";
        public static final String STORE_LOGO                    = "storeLogo";
        public static final String WEIXIN_NUM                    = "weixinNum";
        public static final String OPERATING_TIME                = "operatingTime";
        public static final String OTHER_CONTACTS                = "otherContacts";
        public static final String IS_SHOW_PHONENO               = "isShowPhoneNo";

        public static final String STORE_URL                     = "storeUrl";

        public static final String LEVEL_NO                      = "levelNo";
        public static final String LEVEL_NAME                    = "levelName";
        public static final String SALE_AMOUNT                   = "saleAmount";
        public static final String NEXT_LEVEL_SALE_AMOUNT        = "nextLevelSaleAmount";
        public static final String DIFFER_NEXT_LEVEL_SALE_AMOUNT = "differNextLevelSaleAmount";

        public static final String MY_ORDER                      = "myOrder";
        public static final String STORES_NUMBER                 = "storesNumber";
        public static final String TOTAL                         = "total";
        public static final String PROFIT                        = "profit";
        public static final String IM_ACCOUNT                    = "imAccount";

        public static final String IM_PASSWORD                   = "imPassword";
        public static final String VOIP_ACCOUNT                  = "voipAccount";
        public static final String VOIP_PASSWORD                 = "voipPassword";
        public static final String BANK_BINDED                   = "bankBinded";
        public static final String MY_ORDER_RATE                 = "myorderrate";

        public static final String IDENTITY_ID                   = "IdentityId";
        public static final String BUYER_PHONE                   = "BuyerPhone";
        public static final String BUYER_TOKEN                   = "BuyerToken";
        public static final String BUYER_BIND_STOREID            = "BuyerBindStoreId";
        public static final String JPUSH_ID                      = "jpushid";
        public static final String JPUSH_GROUPID                 = "jpushGroupId";
        public static final String STORE_ID                      = "storeID";
        public static final String MOBILE                        = "mobile";
        public static final String FACE_CHECK                    = "faceCheck";

        // 主题
        public static final String THEME_MODULE_ID               = "id";
        public static final String THEME_NAME                    = "name";
        public static final String IMG_URL                       = "imgUrl";
        public static final String LINK_URL                      = "linkUrl";
        public static final String SORT                          = "sort";
        public static final String TYPE                          = "type";
        public static final String LINK_TYPE                     = "linkType";
        public static final String IS_USABLE                     = "isUsable";
        public static final String APPID                         = "appId";
        public static final String REMARK                        = "remark";
        public static final String STORE_MODULE_ID               = "StoreId";

        // 号码套餐
        public static final String PACKAGE_NAME                  = "package_name";
        public static final String BUSINESS_CODE                 = "business_code";
        public static final String RATES                         = "rates";
        public static final String ADVANCEDEPOSIT_RATES          = "advancedeposit_rates";
        public static final String FEATURE_DESCRIBE              = "feature_describe";
        public static final String PACKAGE_DETAILS               = "package_details";
        public static final String CREATE_TIME                   = "create_time";
        public static final String CREATER_ID                    = "creater_Id";
        public static final String APPID_PACKAGE                 = "appid";
        public static final String JGID                          = "jgid";
        public static final String BRAND_ID                      = "brand_id";

        // 数据
        public static final String DYID                          = "dyid";
        public static final String STARTTIME                     = "starttime";
        public static final String ENDTIME                       = "endtime";
        public static final String SALEDATE                      = "SaleDate";
        public static final String SALEAMOUNT                    = "SaleAmount";

        // 酬金
        public static final String SALE_INDEX                    = "PageIndex";
        public static final String SALE_SIZE                     = "PageSize";
        public static final String TOTAL_COUNT                   = "TotalCount";
        public static final String TOTAL_PAGE                    = "TotalPage";
        public static final String SALE_PAGE                     = "TotalPage";
        public static final String SALE_DATE                     = "data";
        public static final String IS_HISTORY                    = "ishistory";
        public static final String INCOME_LIST                   = "IncomeItemList";
        public static final String SALE_NAME                     = "Name";
        public static final String SALE_COUNT                    = "SaleCount";
        public static final String AMOUNT                        = "Amount";
        public static final String TOTAL_AMOUNT                  = "TotalAmount";

        public static final String USER_ID                       = "userId";

        // 终端销售
        public static final String PRODUCTID                     = "productid";
        public static final String KEYWORDS                      = "keywords";
        public static final String SEQUENCE                      = "sequence";
        public static final String ORGID                         = "orgid";
        public static final String FILTER                        = "filter";
        public static final String LOGINNO                       = "loginno";
        public static final String GROUPID                       = "groupid";
        public static final String REGIONID                      = "regionid";
        public static final String SOLDSEQ                       = "soldseq";
        public static final String PRICESEQ                      = "priceseq";

        public static final String BASE_URL                      = "base_url";
        public static final String PRODUCT_TYPE                  = "product_type";
        public static final String LIST                          = "list";

        // 支付方式
        public static final String PAY_PLAT                      = "pay_plat";
        public static final String PAY_NAME                      = "name";
        public static final String PAY_IMG                       = "img";
        public static final String DEFAULT                       = "default";

        public static final String PARAMS                        = "params";

    }

    public interface CmccKey{
        // request

        // request/return
        public static final String RAWSTR           = "rawStr";

        // 终端销售
        public static final String RESOURCE_CODE    = "resource_code";
        public static final String REGION_ID        = "region_id";
        public static final String PHONE_NO_LOWER   = "phone_no";
        public static final String LOGIN_NO         = "login_no";
        public static final String GROUP_ID         = "group_id";

        // return
        public static final String RES_CODE         = "res_code";
        public static final String RES_MSG          = "res_msg";
        public static final String RESCODE          = "resCode";
        public static final String RESMSG           = "resMsg";
        public static final String OUTDATA          = "outData";
        public static final String REAL_FLAG        = "REAL_FLAG";
        public static final String PRE_ACCEPT       = "PRE_ACCEPT";
        public static final String ROW              = "ROW";
        public static final String PHONE_NO         = "PHONE_NO";
        public static final String STATE            = "STATE";
        public static final String COMM_NAME        = "COMM_NAME";
        public static final String DISTRICT_NAME    = "DISTRICT_NAME";
        public static final String PAY_ACCEPT       = "PAY_ACCEPT";      // 充值缴费订单流水
        public static final String RETURN_CODE      = "RETURN_CODE";
        public static final String RETURN_MSG       = "RETURN_MSG";
        public static final String DETAIL_MSG       = "DETAIL_MSG";
        public static final String ROOT             = "ROOT";
        public static final String RETURN_INFO_LIST = "RETURN_INFO_LIST";
        public static final String RETURN_INFO      = "RETURN_INFO";

    }

    public interface CmccResultCode{
        public final static String SUCCESS_CODE = "0000000";
        public final static String ESB_CODE_SUC = "0000";
    }

    public interface CmccMsg{
        public final static String SUCCESS          = "成功";
        public final static String FAIL             = "失败！";
        public final static String EXCEPTION        = "服务器异常！";
        public final static String PARAEXCEPTION    = "参数异常！";
        public final static String PARA_ILLEGAL     = "参数非法！";
        public final static String EMPTY            = "";
        public final static String EMPTY_DATA       = "[]";
        public final static String NOT_INVALID_USER = "无效用户！";
        public final static String CITY_NOT_EXIST   = "城市数据错误，无法办理业务！";
    }

    /**
     * 终端商品类型
     */
    public interface ProductType{
        public static final int ALL       = 0; // 所有商品，包括省级和地市级
        public static final int RECOMMEND = 1; // 店长推荐（省级）商品
        public static final int HOST      = 2; // 热销（地市级）商品
    }

    /**
     * 排序顺序
     */
    public interface SequenceType{
        public static final String DESC = "0"; // 降序
        public static final String ASC  = "1"; // 升序
    }

    /**
     * 排序类型
     */
    public interface SortType{
        public static final String DEFAULT = "0"; // 默认（排序字段+销量）
        public static final String PRICE   = "1"; // 价格
        public static final String SOLD    = "2"; // 销量
    }

    /**
     * 过滤类型
     */
    public interface FilterType{
        public static final String ALL       = "0"; // 全部（不过滤）
        public static final String CONTRACT  = "1"; // 合约机
        public static final String BAREMETAL = "2"; // 裸机
    }
}
